package org.panda.springsecurity6_x.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.panda.springsecurity6_x.entity.SysUser;
import org.panda.springsecurity6_x.mapper.SysUserMapper;
import org.panda.springsecurity6_x.service.SysUserService;
import org.springframework.stereotype.Service;

/**
 * @param
 * @Description:
 * @author：FanZhongyu
 * @date 2024/4/9 15:23
 */
@Service
public class SysUserServiceImpl extends ServiceImpl<SysUserMapper, SysUser> implements SysUserService {
    @Override
    public SysUser getByUserName(String userName) {
        return this.getOne(new LambdaQueryWrapper<SysUser>().eq(SysUser::getUserName, userName));
    }
}
